package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;

@Gecco(matchUrl = "http://job.hnw.net/plus/ajax_contact.php?id={recruitId}&time={ajaxTime}&act=jobs_contact", pipelines = { "saveContact"})
public class ContactInformation implements HtmlBean {

    @RequestParameter
    private String recruitId;

    @RequestParameter
    private long ajaxTime;

    @Request
    private HttpRequest request;


    @Text
    @HtmlField(cssPath = "div.contact_con > p:eq(0)")
    private String contactPerson;

    @Text
    @HtmlField(cssPath = "div.contact_con > p:eq(1)")
    private String phone;

    @Text
    @HtmlField(cssPath = "div.contact_con > p:eq(2)")
    private String email;

    @Text
    @HtmlField(cssPath = "div.contact_con > p:eq(3)")
    private String address;

    public String getRecruitId() {
        return recruitId;
    }

    public void setRecruitId(String recruitId) {
        this.recruitId = recruitId;
    }

    public long getAjaxTime() {
        return ajaxTime;
    }

    public void setAjaxTime(long ajaxTime) {
        this.ajaxTime = ajaxTime;
    }

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
